import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BackComponent } from './back.component';
import { JavaComponent } from './java/java.component';
import {RouterModule, Routes} from '@angular/router';

const backRoutes: Routes = [
  {path: '', component: BackComponent, children: [
      {path: 'java', component: JavaComponent}
    ]}
];

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(backRoutes)
  ],
  declarations: [
    BackComponent,
    JavaComponent
  ]
})
export class BackModule { }
